<style type="text/css">
    .sm-st {
        background: #fff;
        padding: 20px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        margin-bottom: 20px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
    }

    .sm-st-icon {
        width: 60px;
        height: 60px;
        display: inline-block;
        line-height: 60px;
        text-align: center;
        font-size: 30px;
        background: #eee;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        float: left;
        margin-right: 10px;
        color: #fff;
    }

    .sm-st-info {
        font-size: 12px;
        padding-top: 2px;
    }

    .sm-st-info span {
        display: block;
        font-size: 24px;
        font-weight: 600;
    }

    .orange {
        background: #fa8564 !important;
    }

    .tar {
        background: #45cf95 !important;
    }

    .sm-st .green {
        background: #86ba41 !important;
    }

    .pink {
        background: #AC75F0 !important;
    }

    .yellow-b {
        background: #fdd752 !important;
    }

    .stat-elem {

        background-color: #fff;
        padding: 18px;
        border-radius: 40px;

    }

    .stat-info {
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        font-style: italic;
    }

    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }

    .st-red {
        background-color: #F05050;
    }

    .st-green {
        background-color: #27C24C;
    }

    .st-violet {
        background-color: #7266ba;
    }

    .st-blue {
        background-color: #23b7e5;
    }

    .stats .stat-icon {
        color: #28bb9c;
        display: inline-block;
        font-size: 26px;
        text-align: center;
        vertical-align: middle;
        width: 50px;
        float: left;
    }

    .stat {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

    .stat .value {
        font-size: 20px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
    }

    .stat .name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat.lg .value {
        font-size: 26px;
        line-height: 28px;
    }

    .stat.lg .name {
        font-size: 16px;
    }

    .stat-col .progress {
        height: 2px;
    }

    .stat-col .progress-bar {
        line-height: 2px;
        height: 2px;
    }

    .item {
        padding: 30px 0;
    }


    #statistics .panel {
        min-height: 150px;
    }

    #statistics .panel h5 {
        font-size: 13px;
    }

    #main,.tab-content,#content,#content>.row,.col-lg-12,.content,.panel{
        height: 100%;
    }
    .panel-body{
        height: calc(100% - 10px);
    }
    .charts{
        height: calc(100% - 180px);
    }
    .charts>.col-lg-12{
        height: calc(100% - 60px);
    }
    #echart,#echart2{
        height: 100%;
    }
    .btn_charts{
        padding: 10px 15px 0px 15px;
        border-bottom: solid 1px #e5e5e5;
        margin-bottom: 20px;
    }
    .btn_charts a{
        width: 100px;
        display: inline-block;
        border-bottom: solid 2px #fff;
        color: grey;
        text-align: center;
        font-size: 18px;
    }
    .btn_charts .active{
        border-bottom: solid 3px #009688;
        color: #009688;
        margin-bottom: -1px;
    }
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div>
                <a href="javascript:;" class="btn btn-success" title="{:__('Visualization_screen')}" onclick="window.open('datainfo/datainfo')">{:__('Visualization_screen')}</a>
            </div>
            <div class="tab-pane fade active in" id="one">
                <div class="row" style="margin-top:15px;" id="statistics">
                    <div class="col-lg-12">
                    </div>
                    <div class="col-xs-6 col-md-3">
                        <div class="panel bg-aqua-gradient no-border">
                            <div class="panel-body">
                                <div class="ibox-title">
                                    <h5>{:__('Purchase statistics')}</h5>
                                </div>
                                <div class="ibox-content">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <h1 class="no-margins">{$purchase_num|default=''}</h1>
                                            <div class="font-bold"><i class="fa fa-database"></i>
                                                <small>{:__('Total purchase quantity (this month)')}</small>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <h1 class="no-margins">{$purchase_mon|default=''}</h1>
                                            <div class="font-bold"><i class="fa fa-scribd"></i>
                                                <small>{:__('Purchase amount (this month)')}</small>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-6 col-md-3">
                        <div class="panel bg-aqua-gradient no-border">
                            <div class="panel-body">
                                <div class="ibox-title">
                                    <h5>{:__('Sales statistics')}</h5>
                                </div>
                                <div class="ibox-content">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <h1 class="no-margins">{$sales_num|default=''}</h1>
                                            <div class="font-bold"><i class="fa fa-database"></i>
                                                <small>{:__('Total sales quantity (this month)')}</small>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <h1 class="no-margins">{$sales_mon|default=''}</h1>
                                            <div class="font-bold"><i class="fa fa-scribd"></i>
                                                <small>{:__('Sales amount (this month)')}</small>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xs-6 col-md-3">
                        <div class="panel bg-aqua-gradient no-border">
                            <div class="panel-body">
                                <div class="ibox-title">
                                    <h5>{:__('Inventory statistics')}</h5>
                                </div>
                                <div class="ibox-content">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <h1 class="no-margins">{$stock_num|default=''}</h1>
                                            <div class="font-bold"><i class="fa fa-database"></i>
                                                <small>{:__('Total inventory quantity')}</small>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <h1 class="no-margins">{$purchase_money|default=''}</h1>
                                            <div class="font-bold"><i class="fa fa-scribd"></i>
                                                <small>{:__('Inventory cost')}</small>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-6 col-md-3">
                        <div class="panel bg-aqua-gradient no-border">
                            <div class="panel-body">
                                <div class="ibox-title">
                                    <h5>{:__('Debt statistics')}</h5>
                                </div>
                                <div class="ibox-content">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <h1 class="no-margins">{$customers_mon|default=''}</h1>
                                            <div class="font-bold"><i class="fa fa-scribd"></i>
                                                <small>{:__('Customer debt')}</small>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <h1 class="no-margins">{$suppliers_mon|default=''}</h1>
                                            <div class="font-bold"><i class="fa fa-scribd"></i>
                                                <small>{:__('Supplier debt')}</small>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row charts">
                    <div class="btn_charts">
                        <a href="javascript:;" class="btn_chart active" data-id="1">{:__('Purchase')}</a>
                       <a href="javascript:;" class="btn_chart" data-id="2">{:__('Sales')}</a>
                       <a href="javascript:;" class="btn_chart" data-id="3">{:__('Warehouse')}</a>
                       <a href="javascript:;" class="btn_chart" data-id="4">{:__('Fund')}</a>
                    </div>
                    <div class="col-lg-12">
                        <div id="echart" class="btn-refresh" style="width:100%;"></div>
                        <div id="echart2" class="btn-refresh" style="width:100%;display: none"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
